﻿<Window x:Class="MetaDesigner.TermLabelAttributeManager"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Manage Term Properties and Labels" Height="400" Width="600" Closed="Window_Closed" Closing="Window_Closing">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition />
            
            <RowDefinition Height="25"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        
        <Label FontWeight="Bold" Grid.Row="0">Shared Properties:</Label>
        <DataGrid Grid.Row="1" IsReadOnly="False" x:Name="SharedPropertiesDataGrid" CanUserAddRows="True" CanUserDeleteRows="True"
                  AutoGenerateColumns="True" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                  Margin="5">
        </DataGrid>
        <Label FontWeight="Bold" Grid.Row="0" Grid.Column="1">Local Properties:</Label>
        <DataGrid Grid.Row="1" Grid.Column="1" IsReadOnly="False" x:Name="LocalPropertiesDataGrid" CanUserAddRows="True" CanUserDeleteRows="True"
                  AutoGenerateColumns="True" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                  Margin="5">
        </DataGrid>

        <Label FontWeight="Bold" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center">Labels:</Label>
        <DataGrid Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" IsReadOnly="False" x:Name="LabelsDataGrid" CanUserAddRows="True" CanUserDeleteRows="True"
                  AutoGenerateColumns="False" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                  Margin="5">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Name" Binding="{Binding Name}" />
                <DataGridComboBoxColumn Header="Culture" x:Name="cultureCombo" SelectedValueBinding="{Binding CultureCode}" />
                <DataGridCheckBoxColumn Header="Default for Language" Binding="{Binding IsDefaultForLanguage}" />
            </DataGrid.Columns>
        </DataGrid>

    </Grid>
</Window>
